package com.sxjh.entity.param;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 财务报表通用检索对象
 */
@Data
public class FinanceParam {



  @ApiModelProperty("开始时间")
  @NotNull(message = "开始时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime startDate;

  @ApiModelProperty("结束时间")
  @NotNull(message = "结束时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime endDate;

  @ApiModelProperty("客户ID")
  private Integer customerUserId;

  @ApiModelProperty(value = "物料ID", hidden = true)
  private Integer materialId;

  @ApiModelProperty(value = "物料大类ID", hidden = true)
  private Integer categoryId;

}
